#pragma once

#include "stdafx.h"

class point
{

public:
	double x;
	double y;
	double z;

	point();
	point(double XYZ);
	point(double X, double Y, double Z);
	~point();
	void getPointFromXML(std::ifstream &file);

	void normalize();
	void set(double X, double Y, double Z);
	point move(double X, double Y, double Z);

	point & operator=( const point &other );
	point operator-( point &other );
	point &  operator-=( point &other );
	point operator+( point &other );
	point & operator+=(point &other );
	point operator*( double &scalar );
	bool operator==(const point &other);
	bool operator!=(point &other);

private:
	double width();

};